import axios from '@/libs/request/axios'
import {getUri} from "@/libs/tools";

// 获取品牌的接口
export const getBrand = (params)  => {
    return axios.request({
        url: `/${getUri('rule')}/vehicle/getBrandList`,
        params: params,
        method: 'post'
    })
}

// 获取车型的接口
export const getModel=(params)=>{
    return axios.request({
        url: `/${getUri('rule')}/vehicle/getModelList`,
        params: params,
        method: 'post'
    })
}

// 获取款式的接口
export const getStyle=(params)=>{
    return axios.request({
        url: `/${getUri('rule')}/vehicle/getStyleList`,
        params: params,
        method: 'post'
    })
}
// 获取新品牌的接口
export const getNewBrand = (params)  => {
    return axios.request({
        url: `/${getUri('rule')}/car/getBrandList`,
        params: params,
        method: 'post'
    })
}
// 获取新的接口
export const  getNewModel= (params)  => {
    return axios.request({
        url: `/${getUri('rule')}/car/getModelList`,
        params: params,
        method: 'post'
    })
}
// 获取新的接口
export const  getNewSearchModel= (params)  => {
    return axios.request({
        url: `/${getUri('rule')}/car/getModelTitleList`,
        params: params,
        method: 'post'
    })
}
